package com.huaxin.hxcloud.work;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huaxin.common.Entity.HxScSyncDataDTO;
import com.huaxin.hxcloud.R;

/**
 * @author songxf
 * @date 2018/5/25
 * @Desc 首创综合数据Org adapter
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class HxScSyncOrgAdapter extends BaseQuickAdapter<HxScSyncDataDTO.DataBean.OrgBean.ProcessBean, BaseViewHolder> {
    public HxScSyncOrgAdapter() {
        super(R.layout.item_sc_sync_data2);
    }

    @Override
    protected void convert(BaseViewHolder helper, HxScSyncDataDTO.DataBean.OrgBean.ProcessBean item) {
        TextView titleTv = helper.getView(R.id.value_tv);
        TextView dataTv = helper.getView(R.id.data_tv);
        titleTv.setText(item.getName());
        dataTv.setText((item.getValue() + item.getUnit()));
    }
}
